package com.mars.module.admin.service;

import com.mars.module.admin.entity.SysDoctorRecords;
import com.mars.common.response.PageInfo;
import com.mars.module.admin.request.SysDoctorRecordsRequest;

import java.util.List;

/**
 * 医生出诊记录接口
 *
 * @author caiJin
 * @date 2024-05-13
 */
public interface ISysDoctorRecordsService {
    /**
     * 新增
     *
     * @param param param
     * @return SysDoctorRecords
     */
    SysDoctorRecords add(SysDoctorRecordsRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Long id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Long> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(SysDoctorRecordsRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return SysDoctorRecords
     */
    SysDoctorRecords getById(Long id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<SysDoctorRecords>
     */
    PageInfo<SysDoctorRecords> pageList(SysDoctorRecordsRequest param);


    /**
     * 查询所有数据
     *
     * @return List<SysDoctorRecords>
     */
    List<SysDoctorRecords> list(SysDoctorRecordsRequest param);
}
